package com.sedshop.shop.library.constant;

public class AppConfig {

    //当前用户版本
    public static final String CURRENT_VERSION = "1.0.0";

    public static final boolean DEBUG = false;


    /**
     * 通用的API接口
     */

    //测试环境
    public static final  String BASE_URL_TEST = "http://www.test";
    //正式环境
    public static final  String BASE_URL_RELEASE = "http://www.release";

    public static final String BASE_URL = DEBUG ? BASE_URL_TEST : BASE_URL_RELEASE;


    //商城模块的API接口
    public static final class SHOP {
        public static final  String BASE_URL_TEST = "http://www.test";
        //正式环境
        public static final  String BASE_URL_RELEASE = "http://www.release";
        public static final String BASE_URL = DEBUG ? BASE_URL_TEST : BASE_URL_RELEASE;
    }


    //圈子测试环境
    public static final String GROUP_BASE= "http://falv.api-test.xjkj.cc/bbs/v1/";
    //圈子正式环境
    public static final String GROUP_BASE_RELEASE = "http://falv.api.xjkj.cc/bbs/v1/";
    public static final  String GROUP_BASE_URL = DEBUG ? GROUP_BASE  : GROUP_BASE_RELEASE;
    //获取圈子
    public static final String GROUPS_ALL_URL = GROUP_BASE_URL + "groups?user_id=";

    public static final String getChineseName(String classSimpleName) {
        if ("TestActivity".equals(classSimpleName)) {
            return "test";
        }
        return classSimpleName;
    }
}
